<template>
  <div class="mineset">
    <dl>
      <dt></dt>
    </dl>

    <ul>
      <li @click="signOut">安全退出 <i class="iconfont icon-xiayige"></i></li>
    </ul>
  </div>
</template>

<script>
  import {removeUserInfo} from '@/utils/wechat'
  export default {
    data() {
      return {
      };
    },
    onLoad() {
      this.$wx.setTitleBarTitle('设置');
    },
    methods: {
      signOut(){
        removeUserInfo()
        wx.switchTab({
          url: '/pages/index/main'
        })
      },
    }
  };
</script>

<style scoped>
.mineset dl{text-align: center; padding: 4% 0}
.mineset dl dt{width:80px; height:80px; border-radius: 10px; background: url(http://ssfk-media01.oss-cn-shenzhen.aliyuncs.com/user/10002/1541484906729/logo.png); background-size: cover; display: inline-block;}
.mineset dl dd{text-align: center}

.mineset ul{margin-top:2%; background: #fff; padding:0 4%}
.mineset ul li{ border-bottom:1px #f5f5f5 solid;}
.mineset ul li{padding: 12px 0; position: relative; display: block;}
.mineset ul li i{float: right; margin-top:3px}
.mineset ul li:last-child{border: none}
</style>
